import { ApiProperty } from '@nestjs/swagger';
import { IsArray, IsNotEmpty, IsNumber } from 'class-validator';

export class CreateHistoryDto {
  @ApiProperty({ description: '记录内容' })
  @IsNotEmpty({ message: '记录内容必填' })
  @IsArray()
  desc: Array<string>;
  @ApiProperty({ description: '事件时间' })
  @IsNotEmpty({ message: '事件时间必填' })
  @IsNumber()
  date: number;
}
